
#import "TSHomeMsgController.h"
#import "TSTaskTableView.h"
#import "TSCreateScheduleViewController.h"
#import "TSRecycleMsgListViewController.h"
#import "TSPraiseTabBarController.h"
#import "TSAuditTabBarController.h"
#import "TSSendTabBarController.h"
#import "TSSuperviseTabBarController.h"
#import "TSCreateTaskTabBarController.h"
#import "TSFinishTabBarController.h"
@interface TSHomeMsgController ()

@end

@implementation TSHomeMsgController{
    
}
@synthesize tableView;
- (void)viewDidLoad {
    [super viewDidLoad];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refreshUserViewController:) name:TSNotification_ScheduleCreateSucceeded object:nil];
    self.navigationItem.title = @"消息";
    [self leftBarButtonWithTitle:nil barNorImage:nil barHltImage:nil action:nil];
    tableView =[[TSHomeMsgTableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
    [self.view addSubview:tableView];
    tableView.requestUrl = kRequestUrl_Task_outList_countNotice;
    [tableView.header beginRefreshing];
}


- (void)refreshUserViewController:(NSNotification *)noti
{
    if (tableView) {
        [tableView.header beginRefreshing];
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}


- (void)dealloc
{
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}

@end

